package com.vehicle.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("account-service")//模块名称
public interface AccountFeign {

    @GetMapping("/user/getTel/{userId}")
    public String getUserTel(@PathVariable("userId") Integer userId);

    @GetMapping("/user/getName/{userId}")
    public String getUserName(@PathVariable("userId") Integer userId);
}
